#include"Dector.hpp"

//调用函数，识别贴纸图案
int main()
{                                                   
   std::string imgPath = "/home/cwb/project/picture/ArmorSticker.jpg";  //要操作的图像路径
   std::vector<std::string> templatePaths = {
        "/home/cwb/project/picture/Infantry No.4.jpg",   //模板1路径（4号步兵）
        "/home/cwb/project/picture/Sentry.jpg",       //模板2路径（哨兵）
        "/home/cwb/project/picture/Outpost.jpg"       //模板3路径（前哨站）
   };
   std::vector<std::string> labels = {      
        "Infantry No.4",       //4号步兵
        "Sentry",              //哨兵
        "Outpost"              //前哨站
   };
   TemplateMatcher matcher(imgPath, templatePaths, labels);  //创建一个TemplateMatcher类的对象matcher，并对参数初始化
   matcher.performAllMatches(labels);    //调用performAllMatches函数，实现所有模板匹配
   return 0;
}